package com.zmn.oms.common.exception;

/**
 * 类描述：OMS基础异常类
 *
 * @author xiangyang
 * @date 2018/11/28 17:34
 */
public class OmsBusinessException extends RuntimeException {
    private Integer code = com.zmn.common.constant.StatusConsts.STATUS_ERROR;

    public OmsBusinessException(String message) {
        super(message);
    }

    public OmsBusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public OmsBusinessException(String message, Exception e) {
        super(message, e);
    }

    public OmsBusinessException(Integer code, String message, Exception e) {
        super(message, e);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
